package com.gxa.modules.communityManagement.controller;

import com.gxa.common.utils.PageUtils;
import com.gxa.common.utils.Result;
import com.gxa.modules.communityManagement.entity.CertificateAndConcern;
import com.gxa.modules.communityManagement.entity.HoseUseStatus;
import com.gxa.modules.communityManagement.entity.HouseholdManagement;
import com.gxa.modules.communityManagement.entity.TowerUnit;
import com.gxa.modules.communityManagement.form.HouseholdManagementForm;
import com.gxa.modules.communityManagement.service.CertificateAndConcernService;
import com.gxa.modules.communityManagement.service.HoseUseStatusService;
import com.gxa.modules.communityManagement.service.HouseholdManagementService;
import com.gxa.modules.communityManagement.service.TowerUnitService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@Api(tags = "楼栋单元，证件类型，业主关系，房屋类型状态管理接口")
@RestController
@Slf4j
public class TypeRelationshipStatusController {
    @Autowired
    private HoseUseStatusService hoseUseStatusService;
    @Autowired
    private CertificateAndConcernService certificateAndConcernService;
    @Autowired
    private TowerUnitService towerUnitService;

    @ApiOperation(value="证件关系类型查询接口")
    @GetMapping("/certificateAndConcern/list")
    public Result<List<CertificateAndConcern>> list01(){
        log.info("-------------");
        List<CertificateAndConcern> certificateAndConcerns=this.certificateAndConcernService.list();
        return new Result<List<CertificateAndConcern>>().ok(certificateAndConcerns);
    }

    @ApiOperation(value="房屋类型状态查询接口")
    @GetMapping("/hoseUseStatus/list")
    public Result<List<HoseUseStatus>> list02(){
        log.info("-------------");
        List<HoseUseStatus> hoseUseStatuses=this.hoseUseStatusService.list();
        return new Result<List<HoseUseStatus>>().ok(hoseUseStatuses);
    }

    @ApiOperation(value="楼座单元查询接口")
    @GetMapping("/towerUnit/list")
    public Result<List<TowerUnit>> list03(){
        log.info("-------------");
        List<TowerUnit> towerUnits=this.towerUnitService.list();
        return new Result<List<TowerUnit>>().ok(towerUnits);
    }


}
